package busquedas;

import org.hibernate.Criteria;
import org.hibernate.criterion.Order;

public class FiltroOrdenarMenorCosto extends Filtro{
	
	/**
	 * Constructor, solo ordena la información.
	 */
	public FiltroOrdenarMenorCosto(){
		
	}
	
	public Criteria getRestriction(Criteria c) {
		
		return c.addOrder(Order.asc("costo"));
	}

}
